﻿using System;

class CheckBooleanExpression
{
    static void Main()
    {
        int p = 1;
        int v = 5;
        int mask = 1 << p;
        int vAndMask = v & mask;
        int bit = vAndMask >> p;
        bool check = bit == 1;
        Console.WriteLine(check);
    }
}